import axios from './axiosFun';


//获取某个帖子的所有一级评论列表
export const getFirst = (param1, param2, param3) => { return axios.get("/apply/getFirst?postId=" + param1 + "&currentPage=" + param2 + "&pageSize=" + param3) }


//获取某个帖子的某一级评论的二级评论列表
export const getSecond = (param1, param2) => { return axios.get("/apply/getSecond?postId=" + param1 + "&parentApply=" + param2) }

//发表评论-无论是一级评论还是二级评论
export const addApply= (params) => { return axios.post("/apply/addApply",params) }

//获取自己主动回复的评论
export const getSelfApply= (params) => { return axios.post("/apply/getSelfApply",params) }
//获取自己主动回复的评论
export const getApplyMe= (params) => { return axios.post("/apply/getApplyMe",params) }

//删除自己的回复
export const deleteMyApply = (param) => { return axios.get("/apply/deleteMyApply?id="+param) }
